 const http = require('http')
 const server = http.createServer()
 server.on('request',(req,res)=>{
    res.writeHeader(200,{
        'content-Type':'text/html; charset=utf-8'
    })
     res.end('<h1>哈哈哈~你相信爱情了</h1>')
 })
 server.listen(3000 ,function() {
     console.log('server running at http://127.0.0.1:3000') 
 })